// import { storiesOf } from '@storybook/vue'
import {
  withKnobs,
  //  text,
  //  number,
  //  array
} from '@storybook/addon-knobs'
import { withActions } from '@storybook/addon-actions'
import { withA11y } from '@storybook/addon-a11y'
import StoryRouter from 'storybook-vue-router'
// 这里导入你自己的组件，
import InputSelect from './Index.vue'

export default {
  title: 'InputSelect',
  decorators: [withA11y, withKnobs, withActions(), StoryRouter()],
  parameters: {
    notes: `
    `,
  },
}

export const asAComponent = () => ({
  components: { InputSelect },
  props: {
  },
  data () {
    return {
      form: {
        text: '',
      }
    }
  },
  template: `
    <InputSelect v-model="form.text">
      <a-select-option value="jack">
        Jack
      </a-select-option>
      <a-select-option value="lucy">
        Lucy
      </a-select-option>
    </InputSelect>
  `
})
